package com.recharge.base;

/**
 * Created by qi.cao on 2016/4/19.
 */
public class ResponseInfo<T> {

    private int code;

    private String msg;

    private Integer count;

    private T data;

    public void setInfoEnum (ResponseInfoEnum responseInfoEnum){
        this.code = responseInfoEnum.getCode();
        this.msg = responseInfoEnum.getMsg();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
